<div><a href="{$base_url}&action=clubs_create" class="button add_club"><span>Новый клуб</span></a></div>
<table class="list">
	<tr>
		<th class="_20">Публ.</th>
		<th class="_20">Ред.</th>
		<th>Название</th>
		<th>Категория</th>
		<th>Создатель</th>
		<th>Администрация</th>
		<th>Члены клуба</th>
		<th class="_20">Удл.</th>
	</tr>
	{foreach $clubs as $club}
		<tr>
			<td class="center">
				{if $club->active == 1}
					<a href="{$base_url}&action=clubs_unactive"><img src="{$tpl_url}images/online.png"/></a>
				{else}
					<a href="{$base_url}&action=clubs_active"><img src="{$tpl_url}images/offline.png"/></a>
				{/if}
			</td>
			<td class="center">
				<a href="{$base_url}&action=clubs_edit&id={$club->id}"><img src="{$tpl_url}images/pencil.png"/></a>
			</td>
			<td>{$club->title}</td>
			<td>{$club->Category->ParentCategory->title} - {$club->Category->title}</td>
			<td><a href="?module=users&action=user_edit&id={$club->Owner->id}">{$club->Owner->login}</a></td>
			<td>
				{foreach $club->Administration as $admin}
					<a href="?module=users&action=user_edit&id={$admin->id}">{$admin->login}</a>
				{/foreach}
			</td>
			<td>
				{foreach $club->Members as $member}
					<a href="?module=users&action=user_edit&id={$member->id}">{$member->login}</a>
				{/foreach}
			</td>
			<td class="center">
				<a href="{$base_url}&action=clubs_delete&id={$club->id}"><img src="{$tpl_url}images/trash.png"/></a>
			</td>
		</tr>
	{/foreach}
</table>